package com.ruoyi.hospital.medicine.mapper;

import java.util.List;
import com.ruoyi.hospital.medicine.domain.TPatientMedicine;

/**
 * 患者药品关联Mapper接口
 * 
 * @author Shawn
 * @date 2024-02-21
 */
public interface TPatientMedicineMapper 
{
    /**
     * 查询患者药品关联
     * 
     * @param id 患者药品关联主键
     * @return 患者药品关联
     */
    public TPatientMedicine selectTPatientMedicineById(Long id);

    /**
     * 查询患者药品关联列表
     * 
     * @param tPatientMedicine 患者药品关联
     * @return 患者药品关联集合
     */
    public List<TPatientMedicine> selectTPatientMedicineList(TPatientMedicine tPatientMedicine);

    /**
     * 新增患者药品关联
     * 
     * @param tPatientMedicine 患者药品关联
     * @return 结果
     */
    public int insertTPatientMedicine(TPatientMedicine tPatientMedicine);

    /**
     * 修改患者药品关联
     * 
     * @param tPatientMedicine 患者药品关联
     * @return 结果
     */
    public int updateTPatientMedicine(TPatientMedicine tPatientMedicine);

    /**
     * 删除患者药品关联
     * 
     * @param id 患者药品关联主键
     * @return 结果
     */
    public int deleteTPatientMedicineById(Long id);

    /**
     * 批量删除患者药品关联
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTPatientMedicineByIds(String[] ids);
}
